package com.rs.model;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * 描述：进度表
 * 
 * @author：fjc
 * @date 2020年7月8日
 * @version:1.0
 */
public class Progress implements Serializable {
	@ApiModelProperty(value = "进度表id")
	private Integer pre_id;//进度表id

	@ApiModelProperty(value = "项目id")
	private Integer pre_prid;//项目id

	@ApiModelProperty(value = "项目名称")
	private String pre_prname;//项目名称

	@ApiModelProperty(value = "人员id")
	private Integer pre_uid;//人员id

	@ApiModelProperty(value = "人员姓名")
	private String pre_uname;//人员姓名

	@ApiModelProperty(value = "职位")
	private Integer pre_potype;//职位

	@ApiModelProperty(value = "项目—人员关联id")
	private Integer pre_reid;//项目—人员关联id

	@ApiModelProperty(value = "进度")
	private Integer pre_schedule;//进度

	@ApiModelProperty(value = "总进度")
	private Integer pre_totalsche;//总进度

	@ApiModelProperty(value = "汇报时间")
	private Date pre_time;//汇报时间

	@ApiModelProperty(value = "汇报内容")
	private String pre_content;//汇报内容

	@ApiModelProperty(value = "当前页")
	private Integer pageNum;//当前页

	private static final long serialVersionUID = 1L;

	//转为数组
	public Object[] toObjects(int leng) {
		Object[] ary = new Object[leng];

		ary[0] = pre_id;

		ary[1] = pre_uname;

		switch (pre_potype) {
		case 0:
			ary[2] = "UI";
			break;
		case 1:
			ary[2] = "Java后台";
			break;
		case 2:
			ary[2] = "php后台";
			break;
		case 3:
			ary[2] = "前端";
			break;
		case 4:
			ary[2] = "安卓";
			break;
		case 5:
			ary[2] = "IOS";
			break;
		}

		ary[3] = pre_totalsche + "%";

		ary[4] = pre_schedule + "%";

		ary[5] = "查看";

		return ary;
	}

	public Integer getPre_id() {
		return pre_id;
	}

	public void setPre_id(Integer pre_id) {
		this.pre_id = pre_id;
	}

	public Integer getPre_reid() {
		return pre_reid;
	}

	public void setPre_reid(Integer pre_reid) {
		this.pre_reid = pre_reid;
	}

	public Integer getPre_schedule() {
		return pre_schedule;
	}

	public void setPre_schedule(Integer pre_schedule) {
		this.pre_schedule = pre_schedule;
	}

	public Date getPre_time() {
		return pre_time;
	}

	public void setPre_time(Date pre_time) {
		this.pre_time = pre_time;
	}

	public String getPre_content() {
		return pre_content;
	}

	public void setPre_content(String pre_content) {
		this.pre_content = pre_content;
	}

	public Integer getPre_prid() {
		return pre_prid;
	}

	public void setPre_prid(Integer pre_prid) {
		this.pre_prid = pre_prid;
	}

	public String getPre_prname() {
		return pre_prname;
	}

	public void setPre_prname(String pre_prname) {
		this.pre_prname = pre_prname;
	}

	public Integer getPre_uid() {
		return pre_uid;
	}

	public void setPre_uid(Integer pre_uid) {
		this.pre_uid = pre_uid;
	}

	public String getPre_uname() {
		return pre_uname;
	}

	public void setPre_uname(String pre_uname) {
		this.pre_uname = pre_uname;
	}

	public Integer getPre_totalsche() {
		return pre_totalsche;
	}

	public void setPre_totalsche(Integer pre_totalsche) {
		this.pre_totalsche = pre_totalsche;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPre_potype() {
		return pre_potype;
	}

	public void setPre_potype(Integer pre_potype) {
		this.pre_potype = pre_potype;
	}

	@Override
	public String toString() {
		return "Progress [pre_id=" + pre_id + ", pre_prid=" + pre_prid + ", pre_prname=" + pre_prname + ", pre_uid="
				+ pre_uid + ", pre_uname=" + pre_uname + ", pre_potype=" + pre_potype + ", pre_reid=" + pre_reid
				+ ", pre_schedule=" + pre_schedule + ", pre_totalsche=" + pre_totalsche + ", pre_time=" + pre_time
				+ ", pre_content=" + pre_content + ", pageNum=" + pageNum + "]";
	}

}